﻿<Window x:Class="SLS.Presentation.UILogOn"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:SLS.Controls;assembly=SLS.Controls"
    Title="请登录" Height="600" Width="400"
    >
        <Grid Margin="10">
            <Grid.RowDefinitions>
                <RowDefinition Height="130" />
                <RowDefinition Height="300" />
            <RowDefinition Height="40" />
            <RowDefinition Height="40" />
            <RowDefinition Height="17*" />
        </Grid.RowDefinitions>
            <Grid>
            <Image HorizontalAlignment="Left" Margin="0" Source="/GeneralGUI;component/Resources/Images/128x128/lansunstudio.png"
                       Stretch="Uniform" Width="128" />
                <Label FontWeight="Bold" FontSize="25" Margin="133.806,21,0,49"
                       VerticalContentAlignment="Center" 
                       HorizontalAlignment="Center"
                       >ERP Studio</Label>
                <Label Margin="133.806,0,11,37" Height="26" 
                       HorizontalAlignment="Center"
                       FontSize="12"
                       FontFamily="Microsoft YaHei"
                       VerticalAlignment="Bottom">快乐工作 无私奉献</Label>
            </Grid>
            <Grid Grid.Row="1" Margin="5" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40" />
                <ColumnDefinition Width="80" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="40" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="38" />
                <RowDefinition Height="38" />
                <RowDefinition Height="38" />
                <RowDefinition Height="38" />
            </Grid.RowDefinitions>
             
                <Label Grid.Row="0" Grid.Column="1" Content="Sys ID:" HorizontalAlignment="Left" Margin="3,3,0,3" VerticalAlignment="Center"  />
            <TextBox Grid.Row="0"  Grid.Column="2" DataContext="{Binding Path=AgentList}"
                     Height="23" HorizontalAlignment="Left" Margin="3" Name="cmbSystem" Text="{Binding Path=SM, Mode=OneWay, 
                    ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" /> 
            <Label Grid.Row="1" Grid.Column="1"  Content="Agent Name:"  HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
                
            <TextBox Grid.Row="1" Grid.Column="2"
                     DataContext="{Binding Path=AgentList}"
                     Height="23" HorizontalAlignment="Left" Margin="3" Name="cmbAgent" Text="{Binding 
                Path=AGENTNAME, Mode=TwoWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
        
            
                <Label Grid.Row="2" Grid.Column="1" Content="User Name:"   HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
            <TextBox Grid.Row="2" Grid.Column="2" Height="23" HorizontalAlignment="Left" Margin="3" Name="txtUser" 
                     DataContext="{Binding Path=UserManagement}"
                     Text="{Binding Path=USERNAME, Mode=OneWay, ValidatesOnExceptions=true, NotifyOnValidationError=true}" VerticalAlignment="Center" Width="120" />
            <Label Grid.Row="3" Grid.Column="1"  Content="Password:"  HorizontalAlignment="Left" Margin="3" VerticalAlignment="Center" />
            <PasswordBox Grid.Row="3" Grid.Column="2" Height="23" HorizontalAlignment="Left" Width="120" Margin="3" Name="txtPassword" Password="1" />
             
        </Grid> 
        <Grid Grid.Row="2">
            <CheckBox    FontFamily="Microsoft YaHei" FontSize="12"
                Content="跟踪" IsChecked="{Binding Workspace.IsTrace, Mode=TwoWay}"  Height="16"   HorizontalAlignment="Center" Margin="79,13,205,0" Name="chkTrace" VerticalAlignment="Top" Width="58" />
            <CheckBox FontFamily="Microsoft YaHei" FontSize="12"  Content="界面设计" Height="16" HorizontalAlignment="Center" Margin="206,13,64,0" Name="chkDesign" VerticalAlignment="Top" IsChecked="{Binding Workspace.IsTrace, Mode=TwoWay}" Width="72" />
        </Grid>
        <Button Name="btnSignIn" Grid.Row="3" HorizontalAlignment="Left" Width="92" Content="登录" Click="btnSignIn_Click" Margin="61,8,0,0" VerticalAlignment="Center" Height="32" IsDefault="False"></Button>
        <Button Name="btnQuit"  Grid.Row="3" Margin="197,8,51,0" Height="32" IsDefault="False">退出</Button>
   
    </Grid>
</Window>
